package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;



import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@TableName("openid_user")
public class OpenidUser extends Model<OpenidUser> {

    private static final long serialVersionUID = 1L;

    @TableId("openid")
    private String openid;

    @TableField("user_id")
    private Integer userId;


    @Override
    protected Serializable pkVal() {
        return this.openid;
    }

}
